import request from '@/utils/request'

// 查询四级联考资格审查列表
export function listQualification(query) {
  return request({
    url: '/system/qualification/list',
    method: 'get',
    params: query
  })
}

// 查询四级联考资格审查详细
export function getQualification(id) {
  return request({
    url: '/system/qualification/' + id,
    method: 'get'
  })
}

// 新增四级联考资格审查
export function addQualification(data) {
  return request({
    url: '/system/qualification',
    method: 'post',
    data: data
  })
}

// 修改四级联考资格审查
export function updateQualification(data) {
  return request({
    url: '/system/qualification',
    method: 'put',
    data: data
  })
}

// 删除四级联考资格审查
export function delQualification(id) {
  return request({
    url: '/system/qualification/' + id,
    method: 'delete'
  })
}

// 导出四级联考资格审查
export function exportQualificationManagement(query) {
  return request({
    url: '/system/qualification/export',
    method: 'post',
    params: query
  })
}

// 获取四级联考资格审查导入模板
export function importQualificationTemplate() {
  return request({
    url: '/system/qualification/importTemplate',
    method: 'get'
  })
}

// 导入四级联考资格审查数据
export function importQualificationData(data) {
  return request({
    url: '/system/qualification/importData',
    method: 'post',
    data: data
  })
}

// 生成身份验证名单
export function generateIdentityList() {
  return request({
    url: '/system/qualification/generateIdentityList',
    method: 'post'
  })
}

// 生成递补资格审查名单
export function generateDbQualificationList() {
  return request({
    url: '/system/qualification/generateDbQualificationList',
    method: 'post'
  })
}
